package com.tancire.net.mapper;

import java.util.List;
import com.tancire.net.domain.ShopGoodsCategory;

/**
 * 商品分类Mapper接口
 *
 * @author chenchao
 * @date 2023-11-20
 */
public interface ShopGoodsCategoryMapper {
    /**
     * 查询商品分类
     *
     * @param id 商品分类主键
     * @return 商品分类
     */
    ShopGoodsCategory selectShopGoodsCategoryById(Long id);

    /**
     * 查询商品分类列表
     *
     * @param shopGoodsCategory 商品分类
     * @return 商品分类集合
     */
    List<ShopGoodsCategory> selectShopGoodsCategoryList(ShopGoodsCategory shopGoodsCategory);

    /**
     * 新增商品分类
     *
     * @param shopGoodsCategory 商品分类
     * @return 结果
     */
    int insertShopGoodsCategory(ShopGoodsCategory shopGoodsCategory);

    /**
     * 修改商品分类
     *
     * @param shopGoodsCategory 商品分类
     * @return 结果
     */
    int updateShopGoodsCategory(ShopGoodsCategory shopGoodsCategory);

    /**
     * 删除商品分类
     *
     * @param id 商品分类主键
     * @return 结果
     */
    int deleteShopGoodsCategoryById(Long id);

    /**
     * 批量删除商品分类
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteShopGoodsCategoryByIds(Long[] ids);
}
